<?php $this->load->view('inc_head');?>
<?php if (count($redirects)>0): ?>
<script language="javascript" type="text/javascript">
var second = 3,t;
t=setInterval(redirect, 1000);
function redirect(){
    if (second < 0){
        location.href = '<?=$redirects[0]['url']?>';
        clearInterval(t);
    }else{
        $("#totalSecond").text(second--);
    }
}
</script>
<?php endif; ?>
<body>
	<div id="navigation">
		<div class="wrapper">
			<div class="right logo">
				<a href="/"><img src="<?=$config['site_templateurl'];?>/images/logo.png" alt="骚客"/></a>
			</div>
			<?php $this->load->view('inc_nav');?>

			<div class="right thlogin"><div>
			<a href="<?=site_url('auth/sinalogin')?>?do=redirect" class="sina">新浪微博帐号注册</a>
			<span>|</span>
			<a href="<?=site_url('auth/qqlogin')?>?do=redirect" class="qq">QQ帐号注册</a>
			</div></div>

			<div class="topinfo"><span class="single">一个与你情趣相似的地方</span></div>

			<div class="clear linet"></div>
		</div>
	</div>

	<div class="wrapper" id="maincontainer">
		<div id="part">
	    	<div id="messagepage">
            	<br><br><br><br><br><br><br><br><br>
	            <div class="titlemsg"><?=$msgtitle?></div>
	            <div class="contentmsg">
	            <?php if(!empty($msgcontent)):?><div class="contentmsgdesc"><?=$msgcontent?></div><?php endif;?>
	            <?php if (count($redirects)>0): ?>
	            <?=lang('message1')?><span id="totalSecond" style="color:red;">3</span><?=lang('message2')?>
	            <ul>
	            <?php foreach ($redirects as $val): ?>
	            <li><a href="<?=$val['url']?>"><?=$val['name']?></a></li>
	            <?php endforeach; ?>
	            </ul>
	            <?php endif; ?>
                <br><br><br><br><br><br><br><br><br>
	            </div>
	        </div>
	    </div>

		<div class="clear"></div>
	</div>

	<?php $this->load->view('inc_footer');?>
</body>
</html>